getOrNull

inline fun getOrNull(): T?(source)

Retrieves the value if it's present, or returns null.